import java.util.Scanner;

public class l6 {
    public static void main(String[] args){
        System.out.println("您是否为会员（yes或no）");
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        System.out.println("请输入商品总价：");
        Scanner reader = new Scanner(System.in);
        double b = reader.nextDouble();
        if (a.equals("yes")){
            if (b>100){
                System.out.println("您的折扣为八折，总金额为："+(b*0.8));
            }else {
                System.out.println("您的折扣为九折，总金额为："+(b*0.9));
            }
        }else {
            if (b>100){
                System.out.println("您的折扣为九折，总金额为："+(b*0.9));
            }else {
                System.out.println("您没有折扣，总金额为："+b);
            }
        }
    }
}
